package view;

import java.util.ArrayList;

/**
 * Klasa zawierajaca elementy naglowka: logo, menu i slideshow
 * 
 * @author MODUL FRONTU (WWW)
 *
 */
public class HeaderPanel {

	MenuPanel menu;
	SearchBox search;
	ArrayList<String[]> slideshow;

	/**
	 * Konstruktor dla naglowka 
	 * 
	 * @param String type - uzalezniajacy wyswietlane menu od danego kontekstu
	 */
	public HeaderPanel(String type) {
		this.menu = new MenuPanel(type);
		this.search = new SearchBox();
		this.slideshow = new ArrayList<String[]>();

		// adding images to the arraylist [0]-image name, [1]-title, [2]-desc
		String[] slideshowInfo1 = { "1.jpg", "Hey, nice to meet you.", "Check out our <b>amazing</b> offer!" };
		slideshow.add(slideshowInfo1);

	}

	/**
	 * Setter dla menu i wyszukiwarki
	 * 
	 * @param MenuPanel menu
	 * @param SearchBox search
	 */
	public HeaderPanel(MenuPanel menu, SearchBox search) {

		this.menu = menu;
		this.search = search;
	}

	/**
	 * Getter dla menu
	 * @return MenuPanel menu
	 */
	public MenuPanel getMenu() {
		return menu;
	}

	/**
	 * Getter dla wyszukiwarki 
	 * @return SearchBox 
	 */
	public SearchBox getSearch() {
		return search;
	}

	/**
	 * Getter dla slideshow
	 * @return ArrayList<String[]> slideshow
	 */
	public ArrayList<String[]> getSlideshow() {
		return slideshow;
	}

}
